<template>
  <div>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="用户管理" name="t1">
        <sysuser />
      </el-tab-pane>
      <el-tab-pane label="角色管理" name="t2"> <sysrole /></el-tab-pane>
      <el-tab-pane label="菜单管理" name="t3"> <sysmenu /></el-tab-pane>
      <el-tab-pane label="部门管理" name="t4"> <sysdept /></el-tab-pane>
      <el-tab-pane label="岗位管理" name="t5"> <sysjob /></el-tab-pane>
      <el-tab-pane label="字典管理" name="t6"> <sysdict /></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import sysuser from "./sysuser/index.vue";
import sysrole from "./sysrole/index.vue";
import sysmenu from "./sysmenu/sysmenuHome.vue";
import sysdept from "./sysdept/sysdeptHome.vue";
import sysjob from "./sysjob/sysjobHome.vue";
import sysdict from "./sysdict/index.vue";

export default {
  components: {
    sysuser,
    sysrole,
    sysmenu,
    sysdept,
    sysjob,
    sysdict
  },
  data() {
    return {
      activeName: "t1"
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
};
</script>

<style scoped></style>
